package hr.dario.fragments;

import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;



	public class LocDescActivity2 extends FragmentActivity {
	    @Override
		public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
	            finish();
	            return;
	        }

	        setContentView(R.layout.loc_desc_activity);
	        Intent launchingIntent = getIntent();
	        int index = launchingIntent.getIntExtra("index", 1);
	        LocDescFragment viewer = (LocDescFragment) getSupportFragmentManager()
	                .findFragmentById(R.id.loc_desc_fragment);
	        System.out.println("LocDescActivity: " + index);
	        //viewer.update(index);
	    }
	}

